<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('可转债详情-同花顺列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list-data">
                        <ul>
                            <li>
                                <label>债券代码：</label>
                                <input type="text" name="field0"/>
                            </li>
                            <li>
                                <label>债券简称：</label>
                                <input type="text" name="field1"/>
                            </li>
                            <li>
                                <label>申购日期：</label>
                                <input type="text" name="field2"/>
                            </li>
                            <li>
                                <label>申购代码：</label>
                                <input type="text" name="field3"/>
                            </li>
                            <li>
                                <label>原股东售码</label>
                                <input type="text" name="field4"/>
                            </li>
                            <li>
                                <label>每股获配额</label>
                                <input type="text" name="field5"/>
                            </li>
                            <li>
                                <label>计划发行量</label>
                                <input type="text" name="field6"/>
                            </li>
                            <li>
                                <label>实际发行量</label>
                                <input type="text" name="field7"/>
                            </li>
                            <li>
                                <label>中签公布日</label>
                                <input type="text" name="field8"/>
                            </li>
                            <li>
                                <label>中签号：</label>
                                <input type="text" name="field9"/>
                            </li>
                            <li>
                                <label>上市日期：</label>
                                <input type="text" name="field10"/>
                            </li>
                            <li>
                                <label>正股代码：</label>
                                <input type="text" name="field11"/>
                            </li>
                            <li>
                                <label>正股简称：</label>
                                <input type="text" name="field12"/>
                            </li>
                            <li>
                                <label>转股价格：</label>
                                <input type="text" name="field13"/>
                            </li>
                            <li>
                                <label>到期时间：</label>
                                <input type="text" name="field14"/>
                            </li>
                            <li>
                                <label>中签率：</label>
                                <input type="text" name="field15"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="bond:ZhCovInfoThs:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="bond:ZhCovInfoThs:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="bond:ZhCovInfoThs:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="bond:ZhCovInfoThs:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('bond:ZhCovInfoThs:edit')}]];
        var removeFlag = [[${@permission.hasPermi('bond:ZhCovInfoThs:remove')}]];
        var prefix = ctx + "bond/ZhCovInfoThs";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "可转债详情-同花顺",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: 'ID',
                    visible: false
                },
                {
                    field: 'field0',
                    title: '债券代码'
                },
                {
                    field: 'field1',
                    title: '债券简称&nbsp;&nbsp;'
                },
                {
                    field: 'field2',
                    title: '申购日期&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
                },
                {
                    field: 'field3',
                    title: '申购代码'
                },
                {
                    field: 'field4',
                    title: '原股东配售码'
                },
                {
                    field: 'field5',
                    title: '每股获配额'
                },
                {
                    field: 'field6',
                    title: '计划发行量'
                },
                {
                    field: 'field7',
                    title: '实际发行量'
                },
                {
                    field: 'field8',
                    title: '中签公布日&nbsp;&nbsp;&nbsp;&nbsp;'
                },
                {
                    field: 'field9',
                    title: '中签号'
                },
                {
                    field: 'field10',
                    title: '上市日期&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
                },
                {
                    field: 'field11',
                    title: '正股代码'
                },
                {
                    field: 'field12',
                    title: '正股简称&nbsp;&nbsp;'
                },
                {
                    field: 'field13',
                    title: '转股价格'
                },
                {
                    field: 'field14',
                    title: '到期时间'
                },
                {
                    field: 'field15',
                    title: '中签率'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>